package at.fhj.ase.data;

import java.util.List;

/**
 * 
 * @author Zandmiralvand, Jaklitsch, Mansouri
 * 
 * this class stores an identified attack
 *
 */
public class AttackOutput {
	
	List<String> tags;
	String description;	
	private LogLineInformation logline;
	//
	
	//read-only constructor
	public AttackOutput(List<String> tags, String description, LogLineInformation logline) {
		setTags(tags);
		setDescription(description);
		setLogline(logline);
	}
	
	public void setTags(List<String> tags) {
		this.tags = tags;
	}

	public List<String> getTags() {
		return tags;
	}	

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	private void setLogline(LogLineInformation logline) {
		if(logline == null) {
			throw new IllegalArgumentException("logline may not be null");
		}
		this.logline = new LogLineInformation(logline);
	}
	
	public LogLineInformation getLogline() {
		return new LogLineInformation(this.logline);
	}
}
